package com.java.grammer.finaltest.exer1;

/**
 * @author luzhikun
 * @date 2020/12/5- 20:37
 * <p>
 * 被final关键字修饰的类不能被继承
 * 被final修饰的变量会变成常量，只能赋值一次
 */
public class Final {
    final int age;

    public Final() {
        this.age = 7;
    }

    public Final(int age) {
        this.age = age;
    }

    public void getMax(final int c) {
        //c=7;

    }

}